package com.example.dllo.my36kr.myapp;

/**
 * Created by CPC -272on 16/8/15.
 */

import android.app.Application;
import android.content.Context;

//创建 this的基类,主要的目的是防止内存泄漏,导致的程序崩溃
public class BaseApplication extends Application {

    private static Context baseApplication;

    @Override
    public void onCreate() {
        super.onCreate();
        baseApplication = this;
    }

    public static Context getContext() {

        return baseApplication;
    }
}
